package com.wxtl.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * LkCustProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "lk_cust_product", catalog = "upweb")
public class LkCustProduct implements java.io.Serializable {

	// Fields

	private LkCustProductId id;

	// Constructors

	/** default constructor */
	public LkCustProduct() {
	}

	/** full constructor */
	public LkCustProduct(LkCustProductId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "custId", column = @Column(name = "custId", nullable = false)),
			@AttributeOverride(name = "proId", column = @Column(name = "proId", nullable = false)),
			@AttributeOverride(name = "initVersion", column = @Column(name = "initVersion", length = 20)),
			@AttributeOverride(name = "version", column = @Column(name = "version", length = 20)) })
	public LkCustProductId getId() {
		return this.id;
	}

	public void setId(LkCustProductId id) {
		this.id = id;
	}

}